﻿using System.Windows;

namespace LFSRecord2.View.Dialogs
{
    /// <summary>
    /// Interaction logic for LoadTrackDialogBox.xaml
    /// </summary>
    public partial class LoadTrackDialogBox : Window
    {
        public LoadTrackDialogBox()
        {
            InitializeComponent();
        }

        void cancelButton_Click(object sender, RoutedEventArgs e)
        {
            // Dialog box canceled
            this.DialogResult = false;
        }

        void okButton_Click(object sender, RoutedEventArgs e)
        {
            // Don't accept the dialog box if there is invalid data
            if (!IsValid(this)) return;

            // Dialog box accepted
            this.DialogResult = true;
        }

        // Validate all dependency objects in a window
        static bool IsValid(DependencyObject node)
        {
            //TrackSelectBox
            return true;
        }
    }
}
